import 'package:flutter/material.dart';

import 'online_home_category_item.dart';

class OnlineHomeCategoryList extends StatelessWidget {
  const OnlineHomeCategoryList({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      scrollDirection: Axis.horizontal,
      child: Row(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          OnlineHomeCategoryItem(
            title: 'Combo meal', 
            isActive: true, 
            press: () {}
          ),
          OnlineHomeCategoryItem(
            title: 'Chicken',
            press: () {}
          ),
          OnlineHomeCategoryItem(
            title: 'Beverages',
            press: () {}
          ),
          OnlineHomeCategoryItem(
            title: 'Snacks & Sides',
            press: () {}
          )
        ],
      ),
    );
  }
}